package org.iteam.core.view;

import java.util.ArrayList;
import java.util.List;

import org.iteam.core.view.sys.PermissionView;

public class TreeGridNode extends PermissionView {
	/**
	 * 
	 */
	private static final long serialVersionUID = -7293156455320901518L;
	private Long menu_count = new Long(0);
	private Long module_count = new Long(0);
	private Long function_count = new Long(0);
	private String state = "";

	private List<TreeGridNode> children = new ArrayList<TreeGridNode>();

	public Long getMenu_count() {
		return menu_count;
	}

	public void setMenu_count(Long menu_count) {
		this.menu_count = menu_count;
	}

	public Long getModule_count() {
		return module_count;
	}

	public void setModule_count(Long module_count) {
		this.module_count = module_count;
	}

	public List<TreeGridNode> getChildren() {
		return children;
	}

	public void addChildren(List<TreeGridNode> children) {
		this.children.addAll(children);
	}

	public Long getFunction_count() {
		return function_count;
	}

	public void setFunction_count(Long function_count) {
		this.function_count = function_count;
	}

	public String getState() {
		if(children==null || children.size()<=0){
			state = "";
		}
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

}
